

package com.hazelcast.auditlog;

import javax.security.auth.callback.CallbackHandler;
import java.util.Properties;

/**
 * Interface implemented by {@link AuditlogService} factory classes.
 */
public interface AuditlogServiceFactory {

    /**
     * Initializes this class with given properties. The callbackCandler can provide access to member internals.
     *
     * @param callbackHandler callback handler which provides access to member internals
     * @param properties      properties from the config
     */
    void init(CallbackHandler callbackHandler, Properties properties) throws Exception;

    /**
     * Creates the configured {@link AuditlogService} instance.
     */
    AuditlogService createAuditlog() throws Exception;
}
